package com.carl.method;


//线程命名
public class method_02 {

    static int i = 1;
    public static void main(String[] args) {
        Thread t1 = new Thread(() ->{
            //具体业务操作
            System.out.println(Thread.currentThread().getName());
        });
        t1.setName("模块-功能-" + i++);
        t1.start();
    }
}
